-- magnify
-- created by zhuangsl
-- 皇后冈布奥，暗影形态

return {
    fetchProps = function(who, status, condition)
        local props  = {};
        local endRound = condition["end_round"];

        -- 攻击提升
        local propId = PropM.getPropId("attrib");
        local value  = condition["value"];
        table.insert(props, { propId, "attack", value, endRound, });

        -- 概率双倍伤害
        propId = PropM.getPropId("probability_damage");
        value = condition["rate"];
        table.insert(props, { propId, 1000, value, endRound, });

        return props;
    end,

    desc = function(who, status, condition)
        -- 获取状态描述
        local cfg = CombatStatusM.getStatusInfo(status);
        local desc = cfg.desc;

        -- 攻击百分比提升
        local value = condition["value"];
        value = math.modf(value / 10);
        desc = string.gsub(desc, "{value}", value);

        -- 概率双倍伤害
        value = math.modf(condition["rate"] / 10);
        desc = string.gsub(desc, "{rate}", value);

        return desc;
    end,
};
